<div class="body">
    <mat-toolbar class="toolbar">

        <button mat-icon-button (click)="coreSvc.recordBack()" [disabled]="!coreSvc.isCanBack()"  ><mat-icon>arrow_back</mat-icon></button>
        <button mat-icon-button (click)="coreSvc.recordForward()" [disabled]="!coreSvc.isCanForward()"><mat-icon>arrow_forward</mat-icon></button>
        <button mat-icon-button (click)="coreSvc.toParent()" [disabled]="!coreSvc.isExistParent()" ><mat-icon>arrow_upward</mat-icon></button>
        <!-- <button mat-icon-button (click)="coreSvc.refresh()" ><mat-icon>refresh</mat-icon></button> -->

        <mat-divider [vertical]="true"></mat-divider>
        <app-toolbar-address-cmp class="address"></app-toolbar-address-cmp>
        <button mat-icon-button [matMenuTriggerFor]="operationMenu" (click)="operateMenu($event)"  style="margin: 0 8px;">
            <mat-icon>more_vert</mat-icon>
          </button>
        <mat-divider [vertical]="true"></mat-divider>
        <mat-form-field class="search-form-field">
        <input matInput type="text" [(ngModel)]="query" >
        <button mat-icon-button (click)="search()" matSuffix ><mat-icon>search</mat-icon></button>
        </mat-form-field>

    </mat-toolbar>

    <mat-menu #operationMenu="matMenu"> 
        <button mat-menu-item (click)="createFolder()">新建文件夹</button>
        <button mat-menu-item  [matMenuTriggerFor]="creatFileMenu">新建文件 </button>
        <button mat-menu-item  (click)="createSymbolicLink()">新建快捷方式</button>
        <button mat-menu-item (click)="refresh()">刷新</button>
        <button mat-menu-item *ngIf ="isCanPaste" (click)="paste()">粘贴</button>
        <button mat-menu-item *ngIf="isCanPaste" (click)="pasteSymbolicLink()">粘贴为快捷方式</button>
         <button  mat-menu-item *ngFor="let item of ext_operations_current" (click)="ext_operation_execute(item)" >{{item.name}}</button>
    
        <button mat-menu-item (click)="properties()">属性</button>
    </mat-menu>
    <mat-menu #creatFileMenu="matMenu"> 
        <button class="menu-item"  mat-menu-item   *ngFor="let item of createFile_templates" (click)="createFile(item)" >{{item.name}}</button> 
    </mat-menu>
</div>